//
//  WXMediaEngine.h
//  SULoader
//
//  Created by tianlong on 2018/6/21.
//  Copyright © 2018年 万众科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@class WXMediaEngine;
@protocol WXMediaEngineDelegate <NSObject>
- (void)mediaEngine:(WXMediaEngine *)mediaEngine downloadProgress:(CGFloat)progress;
@end

@interface WXMediaEngine : NSObject
@property (nonatomic, assign) id<WXMediaEngineDelegate> delegate;
- (instancetype)initWithURL:(NSString *)url;
- (void)start;
- (void)pause;
- (void)stop;
@end
